#include <stdio.h>


void toInt(char *c);


int main()
{
  char c;
  printf("请输入字符:\n");
  scanf("%c",&c);
  toInt(&c); 
  return 0;

}


void toInt(char *c)
{
  printf("转换成ASCII码:%d\n",*c);

}


